package nju.software.xkxt.biz.vo;

import nju.software.xkxt.service.model.SelectionModel;

/**
 * @author typ
 * 
 */
public class SelectionVO {

	private String userId;
	private String courseId;
	private String state;
	private String success;
	private String max;
	private String tid;
	private String courseName;
	private String num;// 已选人数

	public SelectionVO(String userId, String courseId, String state,
			String success, String max, String tid, String courseName,
			String num) {
		super();
		this.userId = userId;
		this.courseId = courseId;
		this.state = state;
		this.success = success;
		this.max = max;
		this.tid = tid;
		this.courseName = courseName;
		this.num = num;
	}

	public SelectionVO(SelectionModel selectionModel) {
		super();
		this.userId = String.valueOf(selectionModel.getUserId());
		this.courseId = String.valueOf(selectionModel.getCourseId());
		this.state = String.valueOf(selectionModel.getState());
		this.success = String.valueOf(selectionModel.getSuccess());
		this.max = String.valueOf(selectionModel.getMax());
		this.courseName = selectionModel.getCourseName();
		this.num = String.valueOf(selectionModel.getNum());
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getCourseId() {
		return courseId;
	}

	public void setCourseId(String courseId) {
		this.courseId = courseId;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getSuccess() {
		return success;
	}

	public void setSuccess(String success) {
		this.success = success;
	}

	public String getMax() {
		return max;
	}

	public void setMax(String max) {
		this.max = max;
	}

	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}

	public String getTid() {
		return tid;
	}

	public void setTid(String tid) {
		this.tid = tid;
	}

}
